<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
Class DataBase
{
    private $conecction;
    
    public function __construct() {
        $className = Class_Config::get('db');
        $this->conecction = Factory::getObjectOfClass($className);
    }
    
    public function getConnection()
    {
        return $this->conecction;
    }
}
?>
